Don't update ranges for the whole buffer in treesit--pre-redisplay
authorYuan Fu <casouri@gmail.com>
Mon, 19 Feb 2024 05:39:31 +0000 (21:39 -0800)
committerYuan Fu <casouri@gmail.com>
Mon, 19 Feb 2024 05:43:47 +0000 (21:43 -0800)
commit8f260bb93f534b24d9a93d3315804ffe0c1fec4f
tree67be8342a796c54b030a52742b66535c67ada783
parentf6743099cc907f1f2847f028ff8f3712288c559f
Don't update ranges for the whole buffer in treesit--pre-redisplay

* lisp/treesit.el (treesit--pre-redisplay): Only update two
screen-full of text around point.
lisp/treesit.el